package com.ruoyi.huanghefd.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 * 
 * @TableName makesheet_details
 */
@TableName(value ="makesheet_details")
@Data
public class MakesheetDetails implements Serializable {
    /**
     * ID
     */
    private String msId;

    /**
     * 操作票编号
     */
    private String msCode;

    /**
     * 序号
     */
    private Integer msOrder;

    /**
     * 操作项目
     */
    private String operaProject;

    /**
     * 执行情况，0-失败，1-成功
     */
    private Integer operaResult;

    /**
     * 完成时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date finishTime;

    /**
     * 备注
     */
    private String remark;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        MakesheetDetails other = (MakesheetDetails) that;
        return (this.getMsId() == null ? other.getMsId() == null : this.getMsId().equals(other.getMsId()))
            && (this.getMsCode() == null ? other.getMsCode() == null : this.getMsCode().equals(other.getMsCode()))
            && (this.getMsOrder() == null ? other.getMsOrder() == null : this.getMsOrder().equals(other.getMsOrder()))
            && (this.getOperaProject() == null ? other.getOperaProject() == null : this.getOperaProject().equals(other.getOperaProject()))
            && (this.getOperaResult() == null ? other.getOperaResult() == null : this.getOperaResult().equals(other.getOperaResult()))
            && (this.getFinishTime() == null ? other.getFinishTime() == null : this.getFinishTime().equals(other.getFinishTime()))
            && (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getMsId() == null) ? 0 : getMsId().hashCode());
        result = prime * result + ((getMsCode() == null) ? 0 : getMsCode().hashCode());
        result = prime * result + ((getMsOrder() == null) ? 0 : getMsOrder().hashCode());
        result = prime * result + ((getOperaProject() == null) ? 0 : getOperaProject().hashCode());
        result = prime * result + ((getOperaResult() == null) ? 0 : getOperaResult().hashCode());
        result = prime * result + ((getFinishTime() == null) ? 0 : getFinishTime().hashCode());
        result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", msId=").append(msId);
        sb.append(", msCode=").append(msCode);
        sb.append(", msOrder=").append(msOrder);
        sb.append(", operaProject=").append(operaProject);
        sb.append(", operaResult=").append(operaResult);
        sb.append(", finishTime=").append(finishTime);
        sb.append(", remark=").append(remark);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}